package com.hxc.interest.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 反馈处理转交对象 t_reaction_careof
 * 
 * @author hxc
 * @date 2021-08-27
 */
public class TReactionCareof extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 转交人id */
    @Excel(name = "转交人id")
    private Integer careofId;

    /** 处理人id */
    @Excel(name = "处理人id")
    private Integer conductorId;

    /** 反馈事件id */
    @Excel(name = "反馈事件id")
    private Integer reactionId;

    /** 转交状态（0：默认无，1：同意，2：拒绝） */
    @Excel(name = "转交状态", readConverterExp = "0=：默认无，1：同意，2：拒绝")
    private Integer careStatus;

    /** 是否查看（0：否，1：是） */
    @Excel(name = "是否查看", readConverterExp = "0=：否，1：是")
    private Integer isView;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 转交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "转交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date careofTime;

    //--------------------关联表字段-------------------------------

    /** 事件类型 */
    @Excel(name = "事件类型")
    @TableField(exist = false)
    private Integer contentType;

    /** 事件网格id*/
    @Excel(name = "事件网格id")
    @TableField(exist = false)
    private Integer communityId;

    /** 事件组别id*/
    @Excel(name = "事件组别id")
    @TableField(exist = false)
    private Integer communityGroupId;

    /** 反馈用户头像*/
    @Excel(name = "反馈用户头像")
    @TableField(exist = false)
    private String avatar;

    /** 反馈用户头像*/
    @Excel(name = "反馈用户头像")
    @TableField(exist = false)
    private String conductorAvatar;

    /** 反馈用户姓名*/
    @Excel(name = "反馈用户姓名")
    @TableField(exist = false)
    private String villageName;

    /** 处理人姓名*/
    @Excel(name = "处理人姓名")
    @TableField(exist = false)
    private String conductorName;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCareofId(Integer careofId) 
    {
        this.careofId = careofId;
    }

    public Integer getCareofId() 
    {
        return careofId;
    }
    public void setConductorId(Integer conductorId) 
    {
        this.conductorId = conductorId;
    }

    public Integer getConductorId() 
    {
        return conductorId;
    }
    public void setReactionId(Integer reactionId) 
    {
        this.reactionId = reactionId;
    }

    public Integer getReactionId() 
    {
        return reactionId;
    }
    public void setCareStatus(Integer careStatus) 
    {
        this.careStatus = careStatus;
    }

    public Integer getCareStatus() 
    {
        return careStatus;
    }
    public void setIsView(Integer isView) 
    {
        this.isView = isView;
    }

    public Integer getIsView() 
    {
        return isView;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setCareofTime(Date careofTime) 
    {
        this.careofTime = careofTime;
    }

    public Date getCareofTime() 
    {
        return careofTime;
    }


    public Integer getContentType() {
        return contentType;
    }

    public void setContentType(Integer contentType) {
        this.contentType = contentType;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public Integer getCommunityGroupId() {
        return communityGroupId;
    }

    public void setCommunityGroupId(Integer communityGroupId) {
        this.communityGroupId = communityGroupId;
    }

    public String getAvatar() {
        return avatar;
    }
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getConductorAvatar() {
        return conductorAvatar;
    }

    public void setConductorAvatar(String conductorAvatar) {
        this.conductorAvatar = conductorAvatar;
    }

    public String getVillageName() {
        return villageName;
    }
    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getConductorName() {
        return conductorName;
    }
    public void setConductorName(String conductorName) {
        this.conductorName = conductorName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("careofId", getCareofId())
            .append("conductorId", getConductorId())
            .append("reactionId", getReactionId())
            .append("careStatus", getCareStatus())
            .append("isView", getIsView())
            .append("remarks", getRemarks())
            .append("careofTime", getCareofTime())
            .append("createTime", getCreateTime())
            .append("contentType", getContentType())
            .append("communityId", getCommunityId())
            .append("communityGroupId", getCommunityGroupId())
            .append("avatar", getAvatar())
            .append("conductorAvatar", getConductorAvatar())
            .append("villageName", getVillageName())
            .append("conductorName", getConductorName())
            .toString();
    }
}
